home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93b.txt
/
000063_icon-group-sender _Fri Apr 30 19:02:03 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-06-16
|
1KB
Received: by cheltenham.cs.arizona.edu; Thu, 6 May 1993 16:50:48 MST
Date: 30 Apr 93 19:02:03 GMT
From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wupost!emory!sol.ctr.columbia.edu!src.honeywell.com!skyler.mavd.honeywell.com!djbailey@ucbvax.Berkeley.EDU
Organization: Honeywell Systems & Research Center
Subject: Re: Is this passable code?
Message-Id: <1993Apr30.130203.1@skyler.mavd.honeywell.com>
References: <9304260508.AA21290@internal.apple.com>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
In article <9304260508.AA21290@internal.apple.com>, nevin@apple.com (Nevin ":-]" Liber) writes:
>
> procedure Permute(sString)
>
> local iPos
>
> if 0 = *sString then return sString
>
> suspend sString[iPos := 1 to *sString] ||
> Permute(sString[1:iPos] || sString[iPos+1:0])
>
> end
>
Ok, I understand it's a generator. I understand it's recursive.
I understand it works because I have run it and traced it. I don't
understand why it works or how you thought of the design.
Please explain.
-- Don J. Bailey